package com.suitsoft.bdms.service.imp;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.suitsoft.bdms.dao.commos.CommonsDao;
import com.suitsoft.bdms.dao.imp.ImpDao;

/**
 *
 *@author Suine
 */
@Service
@Transactional
public class ImpManager {
	/** 日志输出对象 */
	protected final Logger logger = LoggerFactory.getLogger(getClass());
	@Autowired
	private ImpDao impDao;
	@Autowired
	private CommonsDao commonsDao;

	public List<Map<String,Object>> getAllSync(){
		return impDao.getAllSync();
	}
	
	public Map<String,Object> get(Long id){
		return impDao.get(id);
	}
	
	public void student(){
		impDao.student();
	}
	
	public void teacher(){
		impDao.teacher();
	}
	
	public void department(){
		impDao.department();
	}
	
	public void staffroom(){
		impDao.staffroom();
	}
	
	public void baseClass(){
		impDao.baseClass();
	}
	
	public void major(){
		impDao.major();
	}
	
	public void studentTask(String xn,String xq){
		impDao.studentTask(xn,xq);
	}
	
	public void teacherTask(){
		impDao.teacherTask();
	}
	
	public void post(){
		impDao.post();
	}
	
	public void departmentMajor(){
		impDao.departmentMajor();
	}
	
	public void syncUser(String viewName){
		impDao.syncUser(viewName);
	}
	public void testTimer(String viewName){
		impDao.testTimer(viewName);
	}
	/**
	 * 获取同步用户的定时执行时间
	 * @return
	 */
	public List<Map<String,Object>> getPointEntityAll(){
		return commonsDao.getPointEntityAll();
	}
}

